<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<sx:head/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../stylesheet/layout.css" />
<script type="text/javascript" src="<%=basePath%>javascript/footer_script.js"></script>
<script>
var request_count=-1;
var notification_count=-1;
var t = new cooliox.timing.Timer();
t.setInterval(3000);
t.onTick = function() {
	get_update('<%=basePath%>');
};
t.start();
get_update('<%=basePath%>');
</script>
</head>
<body>
	<jsp:include page="../common/header.jsp"></jsp:include>
	<jsp:include page="../common/navigator.jsp"></jsp:include>
	<div id="main">
	<s:property value="notice" />
	<form action="<s:url action="find_user" namespace="/user"/>">
	<table>
	<tr>
	<td>
		name:
	</td>
	<td>
		<input type="text" name="name" value="<s:property value="name"/>"/>
	</td>
	</tr>
	<tr>
	<td>
		university:
	</td>
	<td>
		<input type="text" name="university" value="<s:property value="university"/>"/>
	</td>
	</tr>
	<tr>
				<td colspan="2"><input type="submit" value="find" /></td>
			</tr>
	</table>
	</form>
	
	<p></p>
	
	<table>
		<tr>
			<td>name</td>
			<td>email</td>
			<td>age</td>
			<td>university</td>
			<td>gender</td>
			<td>description</td>
		</tr>
		<s:iterator value="userList">
			<tr>
				<td><a href="<s:url action="get_user" namespace="/user"><s:param name="userId"><s:property value="id"/></s:param></s:url>"><s:property value="name" /></a></td>
				<td><s:property value="email" /></td>
				<td><s:property value="age" /></td>
				<td><s:property value="university" /></td>
				<td><s:property value="gender" /></td>
				<td><s:property value="description" /></td>
			</tr>
		</s:iterator>
	</table>
	</div>
	<jsp:include page="../common/footer.jsp"></jsp:include>
</body>
</html>